package com.zcq.dm.masking;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zcq.dm.enums.DMTypeEnum;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 脱敏识别注解
 */
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside  //让此注解可以被Jackson扫描到
@JsonSerialize(using = DMInfoSerialize.class)  //配置处理此注解的序列化处理类
public @interface DMInfo {

    //脱敏的数据类型
    DMTypeEnum type();

}
